home *** CD-ROM | disk | FTP | other *** search
- Path: eng2.iastate.edu!jeffy
- From: jeffy@iastate.edu (Jeffrey A Echtenkamp)
- Newsgroups: comp.lang.c
- Subject: Simple YACC question...
- Date: 22 Feb 96 00:48:19 GMT
- Organization: Iowa State University, Ames, Iowa
- Message-ID: <jeffy.824950099@eng2.iastate.edu>
- NNTP-Posting-Host: eng2.iastate.edu
-
- I have a very simple yacc grammar, which gives the following warnings
- under gnu bison:
-
-
- test.y:9: warning: type clash ('' 'buffer') on default action
- test.y:9: warning: type clash ('' 'buffer') on default action
-
-
- Here's the code:
-
-
- %{
- %}
- %union
- {
- char buffer[1000];
- }
- %token <buffer> STRING
- %%
- STRINGS: STRING | STRING '.' STRINGS;
- %%
-
-
- There's alot more to the code than this, but I was able to reduce
- my error down to these 10 lines and still generate the error.
- The basic thing I want to say is, a "STRINGS" is either a STRING
- or several strings separated by .
-
- Please respond via email if possible.
- Thanks!
-
- - Jeff
- --
- /*******************************************************************/
- Jeffrey A Echtenkamp
- Graduate Student, Computer Engineering
- Iowa State University
-